/**
  * 2024年05月活动相关常量
  * @author: Ruan Jiazhen
  * @date: 2024-04-10 15:13:29
* */
// XXX 考虑迁移到activity-constant.ts中，不再区分每个不同活动

/** 个人赛活动结束时间 */
export const PERSONAL_COMPETITION_END_TIME = '2024-10-31 23:59:59';
/** 互动婚礼周活动结束时间 */
export const INTERACT_WEDDINGWEEK_EDN_TIME= '2024-10-31 23:59:59';
/** 团队赛活动结束时间 */
export const TEAM_COMPETITION_END_TIME = '2024-10-31 23:59:59';

/** 团队人数上限 */
export const TEAM_PEOPLE_LIMIT = 5;

/** 图片地址 */
export const IMG_URL = {
  /** 首页背景图 */
  HOME_BG:
    'https://ustatic.hudongmiao.com/joymew-host-contest/activity-202405/index-bg.webp?new=4',
  BOARD_BG:
    'https://ustatic.joymew.com/%20miao/ywq/board-bg.png',
  TROPHY:
    'https://ustatic.joymew.com/%20miao/ywq/trophy.png',
  PEOPLE:
    'https://ustatic.joymew.com/%20miao/ywq/people.png',
  PERSONA_PEAK_COMPETITION_BG:
    'https://ustatic.hudongmiao.com/joymew-host-contest/activity-202405/personal-competition-bg.webp',
  TEAM_COMPETITION_BG:
    'https://ustatic.hudongmiao.com/joymew-host-contest/activity-202405/team-competition-bg.webp?new=1',
  TEAM_COMPETITION_TITLE:
    'https://ustatic.hudongmiao.com/joymew-host-contest/activity-202405/team-competition-title.png',
  /** 没有团队时显示的头像 */
  NO_TEAM_AVATAR:
    'https://ustatic.hudongmiao.com/joymew-host-contest/202310-activity/no-team-avatar.svg?new=1',
  /** 签到按钮 */
  CHECK_IN_BTN:
    'https://ustatic.hudongmiao.com/joymew-host-contest/activity-202405/check-in-btn.svg',
  HEAD_BG:
    'https://ustatic.hudongmiao.com/joymew-host-contest/activity-202405/head-bg.webp',
  PEOPLE_BLUE:
    'https://ustatic.hudongmiao.com/joymew-host-contest/202310-activity/people-blue.svg',
  CHEST: 'https://ustatic.hudongmiao.com/joymew-host-contest/202310-activity/chest.png?new=1',
  FLAG_GREEN: 'https://ustatic.hudongmiao.com/joymew-host-contest/202310-activity/flag-green.svg?new=1',
  WHEEL: 'https://ustatic.hudongmiao.com/joymew-host-contest/202310-activity/wheel.svg?new=1',
  RED_PACKET: 'https://ustatic.hudongmiao.com/joymew-host-contest/202310-activity/red-packet.svg?new=1',
  RED_PACKET_CAI: 'https://ustatic.hudongmiao.com/joymew-host-contest/202310-activity/red-packet-cai.svg?new=1',
  WALL: 'https://ustatic.hudongmiao.com/joymew-host-contest/202310-activity/wall.svg?new=1',
  CLOCK: 'https://ustatic.hudongmiao.com/joymew-host-contest/202310-activity/clock.svg?new=1',
  LETTER: 'https://ustatic.hudongmiao.com/joymew-host-contest/202310-activity/letter.svg?new=1',
  PEOPLE_RED: 'https://ustatic.hudongmiao.com/joymew-host-contest/202310-activity/people-red.png?new=1',
  QIAN_DAO: 'https://ustatic.hudongmiao.com/joymew-host-contest/202310-activity/qian-dao.png?new=1',
  TARGET: 'https://ustatic.hudongmiao.com/joymew-host-contest/202310-activity/target.svg?new=1',
  STAR_CIRCLE_PURPLE:
    'https://ustatic.hudongmiao.com/joymew-host-contest/activity-202405/star-circle-purple.svg?new=1',
  PLUS_RED:
    'https://ustatic.hudongmiao.com/joymew-host-contest/activity-202405/plus-red.svg?new=1',
  TEAM_POSTER:
    'https://ustatic.hudongmiao.com/joymew-host-contest/activity-202405/team-poster.webp',
  PEOPLE_CIRCLE_YELLOW:
    'https://ustatic.hudongmiao.com/joymew-host-contest/202310-activity/people-circle-yellow.svg?new=1',
  DUSTBIN:
    'https://ustatic.hudongmiao.com/joymew-host-contest/202310-activity/dustbin.png?new=1',
  CONTROLLER:
    'https://ustatic.hudongmiao.com/joymew-host-contest/202310-activity/controller.svg?new=1',
  CALENDAR:
    'https://ustatic.hudongmiao.com/joymew-host-contest/202310-activity/calendar.svg?new=1',
  PERSONAL_PEAK_COMPETITION_RULE:
    'https://ustatic.hudongmiao.com/joymew-host-contest/activity-202405/personal-peak-competition-rule.png?new=1',
  RULE_TITLE:
    'https://ustatic.hudongmiao.com/joymew-host-contest/activity-202405/rule-title.png',
  TEAM_INVITE_COMPETITION_RULE:
    'https://ustatic.hudongmiao.com/joymew-host-contest/activity-202405/team-invite-competition-rule.png?new=1',
  PERSONAL_PEAK_COMPETITION_EMPTY:
    'https://ustatic.hudongmiao.com/joymew-host-contest/activity-202405/personal-competition-empty.webp?new=1',
  TEAM_COMPETITION_EMPTY:
    'https://ustatic.hudongmiao.com/joymew-host-contest/activity-202405/team-competition-empty.png',
  ACTIVITY_INTRODUCTION:
    'https://ustatic.joymew.com/%20miao/ywq/activity-introduction.png',
  ACTIVITY_INTRODUCTION_IMG:
    'https://ustatic.hudongmiao.com/joymew-host-contest/activity-202405/activity-introduction-img.webp?new=1',
  POPUP_BG:
    'https://ustatic.joymew.com/%20miao/ywq/popup-bg.png',
  COIN: 'https://ustatic.hudongmiao.com/joymew-host-contest/activity-202405/coin.webp',
  INVITE: 'https://ustatic.hudongmiao.com/joymew-host-contest/activity-202405/invite.svg',
  APP: 'https://ustatic.joymew.com/%20miao/ywq/haimiaoIcon.png',
  SCREENHBGAME: 'https://ustatic.joymew.com/%20miao/ywq/gameIcon.png',
} as const;

/** 默认用户信息 */
export const DEFAULT_PERSON_INFO = {
  /** id */
  userId: '',
  /** 头像 */
  avatar: '',
  /** 昵称 */
  nickname: '',
  /** 是否加入团队 */
  isJoinTeam: false,
  /** 邀请码 */
  inviteKey: '',
};

/** 积分任务列表 */
export const POINTS_TASK_LIST = [
  {
    icon: 'https://ustatic.joymew.com/%20miao/flag.png',
    title: '完成一场有效活动',
    desc: [
      { text: '奖励300积分' },
    ],
    bubbleContent: '依据平台规则，单场活动签到人数大于30人即认为是真实有效活动',
    btnText: '去创建'
  },
  {
    icon: IMG_URL.RED_PACKET,
    title: '红包雨 游戏',
    desc: [
      { text: '1元流水奖励' },
      {
        text: ' 1 ',
        isHighlight: true,
      },
      { text: '积分' },
    ],
  },
  {
    icon: IMG_URL.RED_PACKET_CAI,
    title: '猜红包 小游戏',
    desc: [
      { text: '1元流水奖励' },
      {
        text: ' 2 ',
        isHighlight: true,
      },
      { text: '积分' },
    ],
  },
  {
    icon: IMG_URL.CLOCK,
    title: '争分夺秒 小游戏',
    desc: [
      { text: '1元流水奖励' },
      {
        text: ' 2 ',
        isHighlight: true,
      },
      { text: '积分' },
    ],
  },
  // {
  //   icon: IMG_URL.WHEEL,
  //   title: '转一转、扭一扭、幸运小转盘 游戏',
  //   desc: [
  //     { text: '1元流水奖励' },
  //     {
  //       text: ' 3 ',
  //       isHighlight: true,
  //     },
  //     { text: '积分' },
  //   ],
  // },
  {
    icon: IMG_URL.WHEEL,
    title: '转一转、扭一扭、幸运小转盘 游戏',
    desc: [
      { text: '1元流水奖励' },
      {
        text: ' 3 ',
        isHighlight: true,
      },
      { text: '积分' },
    ],
  },
  {
    icon: IMG_URL.WALL,
    title: '开宝箱、红包墙小游戏',
    desc: [
      { text: '1元流水奖励' },
      {
        text: ' 5 ',
        isHighlight: true,
      },
      { text: '积分' },
    ],
  },
  // {
  //   icon: IMG_URL.WALL,
  //   title: '红包墙游戏',
  //   desc: [
  //     { text: '1元流水奖励' },
  //     {
  //       text: ' 5 ',
  //       isHighlight: true,
  //     },
  //     { text: '积分' },
  //   ],
  // },
];

/** 每日任务列表 */
export const DAILY_TASK_LIST:TaskInfo[] = [
  {
    icon: IMG_URL.PEOPLE_RED,
    title: '组建团队',
    desc: '组建成8人团队奖励2000积分',
    btnText: '创建团队',
    openType: undefined,
    bubbleContent: undefined,
  },
  {
    icon: 'https://ustatic.hudongmiao.com/miao/activity/auth-icon.png',
    title: '真实团队认证',
    desc: '完成真实有效的团队认证奖励1000积分',
    btnText: '去完成',
    openType: undefined,
    bubbleContent:undefined,
  },
  {
    icon: 'https://ustatic.hudongmiao.com/miao/activity/sign-icon.png',
    title: '每日签到',
    desc: '奖励50积分，全队签到获额外奖励',
    btnText: '签到',
    openType: undefined,
    bubbleContent:
      '当天团队所有人都完成签到，再给团队额外奖励500积分（获得额外积分奖励团队人数需达12人）',
  },
  // {
  //   icon: IMG_URL.LETTER,
  //   title: '邀请好友赚积分',
  //   desc: '最多奖励500积分',
  //   btnText: '去邀请',
  //   openType: 'share',
  //   bubbleContent:
  //     '邀请一位嗨喵老用户参与活动奖励50积分；邀请一位嗨喵新用户（新用户需使用一场真实有效的活动）奖励500积分',
  // },
  {
    icon: IMG_URL.FLAG_GREEN,
    title: '完成一场有效活动',
    desc: '奖励300积分',
    btnText: '未完成',
    openType: undefined,
    disabled: true,
    bubbleContent: '依据平台规则，单场活动签到人数大于30人即认为是真实有效活动',
  },
];

/** 团队任务列表 */
export const TEAM_TASK_LIST = [
  {
    icon: IMG_URL.RED_PACKET,
    title: '红包雨 游戏',
    desc: [
      { text: '1元流水奖励' },
      {
        text: ' 1 ',
        isHighlight: true,
      },
      { text: '积分' },
    ],
  },
  {
    icon: IMG_URL.RED_PACKET_CAI,
    title: '猜红包 小游戏',
    desc: [
      { text: '1元流水奖励' },
      {
        text: ' 2 ',
        isHighlight: true,
      },
      { text: '积分' },
    ],
  },
  {
    icon: IMG_URL.CLOCK,
    title: '争分夺秒 小游戏',
    desc: [
      { text: '1元流水奖励' },
      {
        text: ' 2 ',
        isHighlight: true,
      },
      { text: '积分' },
    ],
  },
  {
    icon: IMG_URL.WHEEL,
    title: '转一转、扭一扭、幸运小转盘 游戏',
    desc: [
      { text: '1元流水奖励' },
      {
        text: ' 3 ',
        isHighlight: true,
      },
      { text: '积分' },
    ],
  },
  {
    icon: IMG_URL.WALL,
    title: '开宝箱、红包墙小游戏',
    desc: [
      { text: '1元流水奖励' },
      {
        text: ' 5 ',
        isHighlight: true,
      },
      { text: '积分' },
    ],
  },
]
type ALTERDESC<T, U> = {
  [P in keyof T]: P extends "desc" ? U : T[P];
};
// App每日任务列表
export const APP_TASK_LIST:TaskInfo[] = [
  {
    icon: 'https://ustatic.hudongmiao.com/miao/activity/coin-icon.png',
    title: '每天登录嗨喵APP',
    desc: [
      { text: '为团队' },
      {
        text: '+100',
        isHighlight: true,
      },{
        text: '积分'
      }
    ],
    btnText: '去完成',
    openType: undefined,
    bubbleContent: undefined,
  },
  {
    icon: 'https://ustatic.hudongmiao.com/miao/activity/coin-icon.png',
    title: '发布一条个人作品',
    desc: [
      { text: '为团队' },
      {
        text: '+100',
        isHighlight: true,
      },{
        text: '积分'
      }
    ],
    btnText: '去完成',
    openType: undefined,
    bubbleContent: undefined,
  },
  {
    icon: 'https://ustatic.hudongmiao.com/miao/activity/coin-icon.png',
    title: '发布一条圈子动态',
    desc: [
      { text: '为团队' },
      {
        text: '+100',
        isHighlight: true,
      },{
        text: '积分'
      }
    ],
    btnText: '去完成',
    openType: undefined,
    bubbleContent: undefined,
  },
  {
    icon: 'https://ustatic.hudongmiao.com/miao/activity/coin-icon.png',
    title: '创建一个个人档期',
    desc: [
      { text: '为团队' },
      {
        text: '+100',
        isHighlight: true,
      },{
        text: '积分'
      }
    ],
    btnText: '去完成',
    openType: undefined,
    bubbleContent: undefined,
  },  
];

/**
 * 激励任务
 */
export const REWAD_TASK_LIST:TaskInfo[] = [
  {
    icon: 'https://ustatic.hudongmiao.com/%20miao/inviteFrid.png',
    title: '邀请好友参加本次活动',
    desc: '邀请一位好友得50积分',
    btnText: '去邀请',
    openType: 'share',
    bubbleContent: undefined,
  },
  {
    icon: 'https://ustatic.hudongmiao.com/%20miao/inviteRgis.png',
    title: '邀请新用户注册使用',
    desc: '注册后完成一场有效活动得1000积分',
    btnText: '去邀请',
    openType: undefined,
    bubbleContent: undefined,
  },
  {
    icon: 'https://ustatic.hudongmiao.com/%20miao/fenxiao.png',
    title: '分销婚礼娃娃',
    desc: '完成真实有效订单得500积分',
    btnText: '去邀请',
    openType: undefined,
    bubbleContent: undefined,
  },
]